package com.example.whatrubbish.mapper;

import com.example.whatrubbish.model.User;
import com.example.whatrubbish.vo.Criteria;
import com.example.whatrubbish.vo.UserWithIntegration;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("UserMapper")
public interface UserMapper {
    Long selectSearchRecordCount(Criteria criteria);

    List<User> selectSearchRecord(Criteria criteria);

    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}